home *** CD-ROM | disk | FTP | other *** search
- Path: gambier.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c,comp.unix.programmer
- Subject: Re: Union anomilies
- Date: 5 Mar 1996 14:04:37 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4hidplINNc1f@gambier.ugrad.cs.ubc.ca>
- References: <4hhuo3$778@transfer.stratus.com> <4hi8tr$502@transfer.stratus.com>
- NNTP-Posting-Host: gambier.ugrad.cs.ubc.ca
-
- In article <4hi8tr$502@transfer.stratus.com>,
- <David_McReynolds@vos.stratus.com> wrote:
- >I have to maintains code written long before I arrived on the scene here.
- >I have a question regarding something I ran into.
- >
- >What issues should I be concerned with regarding typedefed structs that
- >have as data members unions and who are themselves used in unions inside
- >other typedefed structs? The original author had presence of mind enough
- >to be concerned about data alignment as witnessed by the #pragma specifiying
- >2 byte alignment.
-
- Post some of these declarations; the #pragma is probably unnecessary, unless
- the declarations are incorrectly made such that the code which uses them
- depends on the alignment of members. We can't say unless we see the
- declarations.
-
- >Any suggestions as to reference material would be helpful. Things just
- >aren't quite where I expect them to be....
-
- comp.lang.c FAQ; K&R2; ISO/IEC 9899.
-
- >I guess I should mention that the platform is an IBM RS6000 running
- >AIX 3.2.5.
-
- Shouldn't have to...
- --
-
-